<?php


class QWebEventLink extends QObject 
{
	private $control;
	private $event;
	private $params;
	private $merge_params;
	
	public function __construct($control, $event, $params = null, $merge_params = false)
	{
		$this->control = $control;
		$this->event = $event;
		$this->params = $params;
		$this->merge_params = $merge_params;
	}
	
	public function __toString()
	{
		return $this->control->getWebPage()->getUrlManager()->getEventLink(
			$this->control, 
			$this->event, 
			$this->params, 
			$this->merge_params);
	}
	
	public function getLink()
	{
		return $this->__toString();
	}
}

?>